home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / misc / libx11inc.lha / X11 / Xm / ToggleB.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-13  |  1.9 KB  |  71 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
  3.  * ALL RIGHTS RESERVED
  4. */ 
  5. /*   $RCSfile: ToggleB.h,v $ $Revision: 1.11 $ $Date: 92/05/14 12:59:52 $ */
  6. /*
  7. *  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  8. /*
  9. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  10. /***********************************************************************
  11.  *
  12.  * Toggle Widget
  13.  *
  14.  ***********************************************************************/
  15. #ifndef _XmToggle_h
  16. #define _XmToggle_h
  17.  
  18. #include <Xm/Xm.h>
  19.  
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23.  
  24. externalref WidgetClass xmToggleButtonWidgetClass;
  25.  
  26. typedef struct _XmToggleButtonClassRec *XmToggleButtonWidgetClass;
  27. typedef struct _XmToggleButtonRec      *XmToggleButtonWidget;
  28.  
  29. /*fast subclass define */
  30. #ifndef XmIsToggleButton
  31. #define XmIsToggleButton(w)     XtIsSubclass(w, xmToggleButtonWidgetClass)
  32. #endif /* XmIsToggleButton */
  33.  
  34.  
  35. /********    Public Function Declarations    ********/
  36. #ifdef _NO_PROTO
  37.  
  38. extern Boolean XmToggleButtonGetState() ;
  39. extern void XmToggleButtonSetState() ;
  40. extern Widget XmCreateToggleButton() ;
  41.  
  42. #else
  43.  
  44. extern Boolean XmToggleButtonGetState( 
  45.                         Widget w) ;
  46. extern void XmToggleButtonSetState( 
  47.                         Widget w,
  48. #if NeedWidePrototypes
  49.                         int newstate,
  50.                         int notify) ;
  51. #else
  52.                         Boolean newstate,
  53.                         Boolean notify) ;
  54. #endif /* NeedWidePrototypes */
  55. extern Widget XmCreateToggleButton( 
  56.                         Widget parent,
  57.                         char *name,
  58.                         Arg *arglist,
  59.                         Cardinal argCount) ;
  60.  
  61. #endif /* _NO_PROTO */
  62. /********    End Public Function Declarations    ********/
  63.  
  64.  
  65. #ifdef __cplusplus
  66. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  67. #endif
  68.  
  69. #endif /* _XmToggle_h */
  70. /* DON'T ADD ANYTHING AFTER THIS #endif */
  71.